import Vue from 'vue'

const states = Vue.observable({
    message: 'hello vue',
    count: 0,
    searchVal:"",
})

const mutations = {
    setMessage(message) {
        states.message = message
    },
    setCount(count) {
        states.count = count
    },
    setSearchVal(val){
        states.searchVal = val
    },
}

export default {
    states,
    mutations,
}